/* 
 * File:   intermediaria.h
 * Author: joao
 *
 * Created on 27 de Setembro de 2014, 16:29
 */

#ifndef INTERMEDIARIA_H
#define	INTERMEDIARIA_H

int inter();
void do_echo_client(char *pack, int sock, sockaddr_in client) ;
void do_echo_command(int sock_cli, char *buf, sockaddr_in *serv, hostent *he);
int do_echo(int *sock, char *buf, sockaddr_in *serv, hostent *he, int port);
int get_porta();

#endif	/* INTERMEDIARIA_H */

